package com.kgcx.common.client.organization;

import com.kgcx.common.client.organization.pojo.EmployeeCity;
import com.kgcx.common.client.organization.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "system")
public interface WebUserClient {

    @GetMapping("sys/user/getUserByUserkid")
    User getUserByUserkid(@RequestParam("kid") Long kid);

    @GetMapping({"sys/user/getUserByAccount"})
    User getUserByAccount(@RequestParam("account") String account);

    @GetMapping("sys/user/getCityCodeByEmployeeId")
    List<EmployeeCity> getCityCodeByEmployeeId(@RequestParam("employeeId") Long employeeId);

    @GetMapping("sys/user/getCityCodeByAccount")
    List<EmployeeCity> getCityCodeByAccount(@RequestParam("account") String account);

    @GetMapping("sys/user/roleAuth")
    Boolean roleAuth(@RequestParam("employeeId") Long employeeId, @RequestParam("url") String url);
}
